# -*- coding: utf-8 -*-
"""
@Author: thekernel
@Date: 2020/6/22 20:31
@Description: 豆果美食爬虫入口
"""
from douguo import DouGuo, handle_recipe_list
from concurrent.futures import ThreadPoolExecutor

d = DouGuo()
d.handle_index()

pool = ThreadPoolExecutor(max_workers=20)

while d.queue_list.empty() is not True:
    pool.submit(handle_recipe_list, d.queue_list.get())
